<?php
/**
 * Created by PhpStorm.
 * User: 24954
 * Date: 2020/1/6
 * Time: 14:18
 */
namespace App\Http\Request\System\User;

use App\Common\Utils\BaseRequest;

class SetuserroleRequest extends BaseRequest {
    public function rules() {
        $rules = [
            'id' => 'required',
            'roleid' => 'required|array',
        ];

        return $rules;
    }

    public function messages() {
        $messages = [
            'id.required' => 'id不能为空',
            'roleid.required' => 'roleid不能为空',
            'roleid.array'  => 'roleid必须是数组'

        ];

        return $messages;
    }
}
